#! /usr/bin/python
from HueConf import KEY, HUB_IP 
from libs.utils import off
from libs.NewHueScript import HueScript
from libs.HueBridge import HueBridge
from libs.HueCue import HueCue

class OffScript(HueScript):
    def __init__(self, *posargs, **kwargs):
        HueScript.__init__(self, *posargs, **kwargs)

    def makeCues(self):
        self.cues = []
        for l in self.bridge.lamps:
           self.cues.append( HueCue(1, l.off) )

if __name__ == '__main__':
    off = OffScript( bridge=HueBridge(ipaddr=HUB_IP, key=KEY) )
    off() 
